package nc.bs.so.m30.maintain;

import com.yonyou.byb.BybConstant;
import com.yonyou.byb.ConfigContext;

import nc.bs.framework.common.InvocationInfoProxy;
import nc.bs.framework.common.NCLocator;
import nc.pubimpl.so.itf.IAppSaleOrderToPayService;
import nc.vo.pub.BusinessException;
import nc.vo.so.m30.entity.SaleOrderVO;

public class InsertSaleOrderBP {
	public InsertSaleOrderBP() {
	}

	public SaleOrderVO[] insert(SaleOrderVO[] bills) throws BusinessException {
		
		InvocationInfoProxy.getInstance().setUserDataSource(ConfigContext.getInstance().getDatasource());
		InvocationInfoProxy.getInstance().setUserCode(BybConstant.BYB_USER_CODE);
		InvocationInfoProxy.getInstance().setUserId(BybConstant.BYB_USER_ID);
		InvocationInfoProxy.getInstance().setGroupId(BybConstant.GROUP_ID);
		return NCLocator.getInstance().lookup(IAppSaleOrderToPayService.class)
				.insert(bills);
	}

}